Integrand size = 19, antiderivative size = 111 \[ \int \cot ^8(c+d x) (a+b \sec (c+d x)) \, dx=a x-\frac {\cot ^7(c+d x) (a+b \sec (c+d x))}{7 d}+\frac {\cot ^5(c+d x) (7 a+6 b \sec (c+d x))}{35 d}+\frac {\cot (c+d x) (35 a+16 b \sec (c+d x))}{35 d}-\frac {\cot ^3(c+d x) (35 a+24 b \sec (c+d x))}{105 d} \]
a*x-1/7*cot(d*x+c)^7*(a+b*sec(d*x+c))/d+1/35*cot(d*x+c)^5*(7*a+6*b*sec(d*x +c))/d+1/35*cot(d*x+c)*(35*a+16*b*sec(d*x+c))/d-1/105*cot(d*x+c)^3*(35*a+2 4*b*sec(d*x+c))/d
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.03 (sec) , antiderivative size = 92, normalized size of antiderivative = 0.83 \[ \int \cot ^8(c+d x) (a+b \sec (c+d x)) \, dx=\frac {b \csc (c+d x)}{d}-\frac {b \csc ^3(c+d x)}{d}+\frac {3 b \csc ^5(c+d x)}{5 d}-\frac {b \csc ^7(c+d x)}{7 d}-\frac {a \cot ^7(c+d x) \operatorname {Hypergeometric2F1}\left (-\frac {7}{2},1,-\frac {5}{2},-\tan ^2(c+d x)\right )}{7 d} \]
(b*Csc[c + d*x])/d - (b*Csc[c + d*x]^3)/d + (3*b*Csc[c + d*x]^5)/(5*d) - ( b*Csc[c + d*x]^7)/(7*d) - (a*Cot[c + d*x]^7*Hypergeometric2F1[-7/2, 1, -5/ 2, -Tan[c + d*x]^2])/(7*d)
Time = 0.56 (sec) , antiderivative size = 119, normalized size of antiderivative = 1.07, number of steps used = 12, number of rules used = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.632, Rules used = {3042, 4370, 25, 3042, 4370, 25, 3042, 4370, 27, 3042, 4370, 24}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \cot ^8(c+d x) (a+b \sec (c+d x)) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {a+b \csc \left (c+d x+\frac {\pi }{2}\right )}{\cot \left (c+d x+\frac {\pi }{2}\right )^8}dx\) |
\(\Big \downarrow \) 4370 |
\(\displaystyle \frac {1}{7} \int -\cot ^6(c+d x) (7 a+6 b \sec (c+d x))dx-\frac {\cot ^7(c+d x) (a+b \sec (c+d x))}{7 d}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {1}{7} \int \cot ^6(c+d x) (7 a+6 b \sec (c+d x))dx-\frac {\cot ^7(c+d x) (a+b \sec (c+d x))}{7 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {1}{7} \int \frac {7 a+6 b \csc \left (c+d x+\frac {\pi }{2}\right )}{\cot \left (c+d x+\frac {\pi }{2}\right )^6}dx-\frac {\cot ^7(c+d x) (a+b \sec (c+d x))}{7 d}\) |
\(\Big \downarrow \) 4370 |
\(\displaystyle \frac {1}{7} \left (\frac {\cot ^5(c+d x) (7 a+6 b \sec (c+d x))}{5 d}-\frac {1}{5} \int -\cot ^4(c+d x) (35 a+24 b \sec (c+d x))dx\right )-\frac {\cot ^7(c+d x) (a+b \sec (c+d x))}{7 d}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {1}{7} \left (\frac {1}{5} \int \cot ^4(c+d x) (35 a+24 b \sec (c+d x))dx+\frac {\cot ^5(c+d x) (7 a+6 b \sec (c+d x))}{5 d}\right )-\frac {\cot ^7(c+d x) (a+b \sec (c+d x))}{7 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{7} \left (\frac {1}{5} \int \frac {35 a+24 b \csc \left (c+d x+\frac {\pi }{2}\right )}{\cot \left (c+d x+\frac {\pi }{2}\right )^4}dx+\frac {\cot ^5(c+d x) (7 a+6 b \sec (c+d x))}{5 d}\right )-\frac {\cot ^7(c+d x) (a+b \sec (c+d x))}{7 d}\) |
\(\Big \downarrow \) 4370 |
\(\displaystyle \frac {1}{7} \left (\frac {1}{5} \left (\frac {1}{3} \int -3 \cot ^2(c+d x) (35 a+16 b \sec (c+d x))dx-\frac {\cot ^3(c+d x) (35 a+24 b \sec (c+d x))}{3 d}\right )+\frac {\cot ^5(c+d x) (7 a+6 b \sec (c+d x))}{5 d}\right )-\frac {\cot ^7(c+d x) (a+b \sec (c+d x))}{7 d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{7} \left (\frac {1}{5} \left (-\int \cot ^2(c+d x) (35 a+16 b \sec (c+d x))dx-\frac {\cot ^3(c+d x) (35 a+24 b \sec (c+d x))}{3 d}\right )+\frac {\cot ^5(c+d x) (7 a+6 b \sec (c+d x))}{5 d}\right )-\frac {\cot ^7(c+d x) (a+b \sec (c+d x))}{7 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{7} \left (\frac {1}{5} \left (-\int \frac {35 a+16 b \csc \left (c+d x+\frac {\pi }{2}\right )}{\cot \left (c+d x+\frac {\pi }{2}\right )^2}dx-\frac {\cot ^3(c+d x) (35 a+24 b \sec (c+d x))}{3 d}\right )+\frac {\cot ^5(c+d x) (7 a+6 b \sec (c+d x))}{5 d}\right )-\frac {\cot ^7(c+d x) (a+b \sec (c+d x))}{7 d}\) |
\(\Big \downarrow \) 4370 |
\(\displaystyle \frac {1}{7} \left (\frac {1}{5} \left (-\int -35 adx-\frac {\cot ^3(c+d x) (35 a+24 b \sec (c+d x))}{3 d}+\frac {\cot (c+d x) (35 a+16 b \sec (c+d x))}{d}\right )+\frac {\cot ^5(c+d x) (7 a+6 b \sec (c+d x))}{5 d}\right )-\frac {\cot ^7(c+d x) (a+b \sec (c+d x))}{7 d}\) |
\(\Big \downarrow \) 24 |
\(\displaystyle \frac {1}{7} \left (\frac {\cot ^5(c+d x) (7 a+6 b \sec (c+d x))}{5 d}+\frac {1}{5} \left (-\frac {\cot ^3(c+d x) (35 a+24 b \sec (c+d x))}{3 d}+\frac {\cot (c+d x) (35 a+16 b \sec (c+d x))}{d}+35 a x\right )\right )-\frac {\cot ^7(c+d x) (a+b \sec (c+d x))}{7 d}\) |
-1/7*(Cot[c + d*x]^7*(a + b*Sec[c + d*x]))/d + ((Cot[c + d*x]^5*(7*a + 6*b *Sec[c + d*x]))/(5*d) + (35*a*x + (Cot[c + d*x]*(35*a + 16*b*Sec[c + d*x]) )/d - (Cot[c + d*x]^3*(35*a + 24*b*Sec[c + d*x]))/(3*d))/5)/7
3.3.70.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[(cot[(c_.) + (d_.)*(x_)]*(e_.))^(m_)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + ( a_)), x_Symbol] :> Simp[(-(e*Cot[c + d*x])^(m + 1))*((a + b*Csc[c + d*x])/( d*e*(m + 1))), x] - Simp[1/(e^2*(m + 1)) Int[(e*Cot[c + d*x])^(m + 2)*(a* (m + 1) + b*(m + 2)*Csc[c + d*x]), x], x] /; FreeQ[{a, b, c, d, e}, x] && L tQ[m, -1]
Time = 1.69 (sec) , antiderivative size = 162, normalized size of antiderivative = 1.46
method | result | size |
derivativedivides | \(\frac {a \left (-\frac {\cot \left (d x +c \right )^{7}}{7}+\frac {\cot \left (d x +c \right )^{5}}{5}-\frac {\cot \left (d x +c \right )^{3}}{3}+\cot \left (d x +c \right )+d x +c \right )+b \left (-\frac {\cos \left (d x +c \right )^{8}}{7 \sin \left (d x +c \right )^{7}}+\frac {\cos \left (d x +c \right )^{8}}{35 \sin \left (d x +c \right )^{5}}-\frac {\cos \left (d x +c \right )^{8}}{35 \sin \left (d x +c \right )^{3}}+\frac {\cos \left (d x +c \right )^{8}}{7 \sin \left (d x +c \right )}+\frac {\left (\frac {16}{5}+\cos \left (d x +c \right )^{6}+\frac {6 \cos \left (d x +c \right )^{4}}{5}+\frac {8 \cos \left (d x +c \right )^{2}}{5}\right ) \sin \left (d x +c \right )}{7}\right )}{d}\) | \(162\) |
default | \(\frac {a \left (-\frac {\cot \left (d x +c \right )^{7}}{7}+\frac {\cot \left (d x +c \right )^{5}}{5}-\frac {\cot \left (d x +c \right )^{3}}{3}+\cot \left (d x +c \right )+d x +c \right )+b \left (-\frac {\cos \left (d x +c \right )^{8}}{7 \sin \left (d x +c \right )^{7}}+\frac {\cos \left (d x +c \right )^{8}}{35 \sin \left (d x +c \right )^{5}}-\frac {\cos \left (d x +c \right )^{8}}{35 \sin \left (d x +c \right )^{3}}+\frac {\cos \left (d x +c \right )^{8}}{7 \sin \left (d x +c \right )}+\frac {\left (\frac {16}{5}+\cos \left (d x +c \right )^{6}+\frac {6 \cos \left (d x +c \right )^{4}}{5}+\frac {8 \cos \left (d x +c \right )^{2}}{5}\right ) \sin \left (d x +c \right )}{7}\right )}{d}\) | \(162\) |
risch | \(a x +\frac {2 i \left (105 b \,{\mathrm e}^{13 i \left (d x +c \right )}+420 a \,{\mathrm e}^{12 i \left (d x +c \right )}-210 b \,{\mathrm e}^{11 i \left (d x +c \right )}-1260 a \,{\mathrm e}^{10 i \left (d x +c \right )}+903 b \,{\mathrm e}^{9 i \left (d x +c \right )}+3080 a \,{\mathrm e}^{8 i \left (d x +c \right )}-636 b \,{\mathrm e}^{7 i \left (d x +c \right )}-3080 a \,{\mathrm e}^{6 i \left (d x +c \right )}+903 b \,{\mathrm e}^{5 i \left (d x +c \right )}+2436 a \,{\mathrm e}^{4 i \left (d x +c \right )}-210 b \,{\mathrm e}^{3 i \left (d x +c \right )}-812 a \,{\mathrm e}^{2 i \left (d x +c \right )}+105 b \,{\mathrm e}^{i \left (d x +c \right )}+176 a \right )}{105 d \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{7}}\) | \(184\) |
1/d*(a*(-1/7*cot(d*x+c)^7+1/5*cot(d*x+c)^5-1/3*cot(d*x+c)^3+cot(d*x+c)+d*x +c)+b*(-1/7/sin(d*x+c)^7*cos(d*x+c)^8+1/35/sin(d*x+c)^5*cos(d*x+c)^8-1/35/ sin(d*x+c)^3*cos(d*x+c)^8+1/7/sin(d*x+c)*cos(d*x+c)^8+1/7*(16/5+cos(d*x+c) ^6+6/5*cos(d*x+c)^4+8/5*cos(d*x+c)^2)*sin(d*x+c)))
Time = 0.28 (sec) , antiderivative size = 179, normalized size of antiderivative = 1.61 \[ \int \cot ^8(c+d x) (a+b \sec (c+d x)) \, dx=\frac {176 \, a \cos \left (d x + c\right )^{7} + 105 \, b \cos \left (d x + c\right )^{6} - 406 \, a \cos \left (d x + c\right )^{5} - 210 \, b \cos \left (d x + c\right )^{4} + 350 \, a \cos \left (d x + c\right )^{3} + 168 \, b \cos \left (d x + c\right )^{2} - 105 \, a \cos \left (d x + c\right ) + 105 \, {\left (a d x \cos \left (d x + c\right )^{6} - 3 \, a d x \cos \left (d x + c\right )^{4} + 3 \, a d x \cos \left (d x + c\right )^{2} - a d x\right )} \sin \left (d x + c\right ) - 48 \, b}{105 \, {\left (d \cos \left (d x + c\right )^{6} - 3 \, d \cos \left (d x + c\right )^{4} + 3 \, d \cos \left (d x + c\right )^{2} - d\right )} \sin \left (d x + c\right )} \]
1/105*(176*a*cos(d*x + c)^7 + 105*b*cos(d*x + c)^6 - 406*a*cos(d*x + c)^5 - 210*b*cos(d*x + c)^4 + 350*a*cos(d*x + c)^3 + 168*b*cos(d*x + c)^2 - 105 *a*cos(d*x + c) + 105*(a*d*x*cos(d*x + c)^6 - 3*a*d*x*cos(d*x + c)^4 + 3*a *d*x*cos(d*x + c)^2 - a*d*x)*sin(d*x + c) - 48*b)/((d*cos(d*x + c)^6 - 3*d *cos(d*x + c)^4 + 3*d*cos(d*x + c)^2 - d)*sin(d*x + c))
\[ \int \cot ^8(c+d x) (a+b \sec (c+d x)) \, dx=\int \left (a + b \sec {\left (c + d x \right )}\right ) \cot ^{8}{\left (c + d x \right )}\, dx \]
Time = 0.29 (sec) , antiderivative size = 100, normalized size of antiderivative = 0.90 \[ \int \cot ^8(c+d x) (a+b \sec (c+d x)) \, dx=\frac {{\left (105 \, d x + 105 \, c + \frac {105 \, \tan \left (d x + c\right )^{6} - 35 \, \tan \left (d x + c\right )^{4} + 21 \, \tan \left (d x + c\right )^{2} - 15}{\tan \left (d x + c\right )^{7}}\right )} a + \frac {3 \, {\left (35 \, \sin \left (d x + c\right )^{6} - 35 \, \sin \left (d x + c\right )^{4} + 21 \, \sin \left (d x + c\right )^{2} - 5\right )} b}{\sin \left (d x + c\right )^{7}}}{105 \, d} \]
1/105*((105*d*x + 105*c + (105*tan(d*x + c)^6 - 35*tan(d*x + c)^4 + 21*tan (d*x + c)^2 - 15)/tan(d*x + c)^7)*a + 3*(35*sin(d*x + c)^6 - 35*sin(d*x + c)^4 + 21*sin(d*x + c)^2 - 5)*b/sin(d*x + c)^7)/d
Leaf count of result is larger than twice the leaf count of optimal. 225 vs. \(2 (103) = 206\).
Time = 0.37 (sec) , antiderivative size = 225, normalized size of antiderivative = 2.03 \[ \int \cot ^8(c+d x) (a+b \sec (c+d x)) \, dx=\frac {15 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 15 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 189 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 147 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 1295 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 735 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 13440 \, {\left (d x + c\right )} a - 9765 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 3675 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \frac {9765 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} + 3675 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} - 1295 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 735 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 189 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 147 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 15 \, a - 15 \, b}{\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7}}}{13440 \, d} \]
1/13440*(15*a*tan(1/2*d*x + 1/2*c)^7 - 15*b*tan(1/2*d*x + 1/2*c)^7 - 189*a *tan(1/2*d*x + 1/2*c)^5 + 147*b*tan(1/2*d*x + 1/2*c)^5 + 1295*a*tan(1/2*d* x + 1/2*c)^3 - 735*b*tan(1/2*d*x + 1/2*c)^3 + 13440*(d*x + c)*a - 9765*a*t an(1/2*d*x + 1/2*c) + 3675*b*tan(1/2*d*x + 1/2*c) + (9765*a*tan(1/2*d*x + 1/2*c)^6 + 3675*b*tan(1/2*d*x + 1/2*c)^6 - 1295*a*tan(1/2*d*x + 1/2*c)^4 - 735*b*tan(1/2*d*x + 1/2*c)^4 + 189*a*tan(1/2*d*x + 1/2*c)^2 + 147*b*tan(1 /2*d*x + 1/2*c)^2 - 15*a - 15*b)/tan(1/2*d*x + 1/2*c)^7)/d
Time = 14.66 (sec) , antiderivative size = 174, normalized size of antiderivative = 1.57 \[ \int \cot ^8(c+d x) (a+b \sec (c+d x)) \, dx=a\,x+\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,\left (\frac {37\,a}{384}-\frac {7\,b}{128}\right )}{d}-\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,\left (\frac {9\,a}{640}-\frac {7\,b}{640}\right )}{d}+\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7\,\left (\frac {a}{896}-\frac {b}{896}\right )}{d}-\frac {{\mathrm {cot}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7\,\left (\left (-93\,a-35\,b\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+\left (\frac {37\,a}{3}+7\,b\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+\left (-\frac {9\,a}{5}-\frac {7\,b}{5}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+\frac {a}{7}+\frac {b}{7}\right )}{128\,d}-\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (\frac {93\,a}{128}-\frac {35\,b}{128}\right )}{d} \]
a*x + (tan(c/2 + (d*x)/2)^3*((37*a)/384 - (7*b)/128))/d - (tan(c/2 + (d*x) /2)^5*((9*a)/640 - (7*b)/640))/d + (tan(c/2 + (d*x)/2)^7*(a/896 - b/896))/ d - (cot(c/2 + (d*x)/2)^7*(a/7 + b/7 - tan(c/2 + (d*x)/2)^2*((9*a)/5 + (7* b)/5) + tan(c/2 + (d*x)/2)^4*((37*a)/3 + 7*b) - tan(c/2 + (d*x)/2)^6*(93*a + 35*b)))/(128*d) - (tan(c/2 + (d*x)/2)*((93*a)/128 - (35*b)/128))/d